﻿ <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Administration.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<WFBot.Framework.Domain.Visitor>>" %>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">

    <h2>Ziyaretçiler</h2>

    <% using (Html.BeginForm()) { %>

        <div>
            Ziyaretçi Ara: <%=Html.TextBox("criteria") %>

            <input type="submit" value="Ara" />
        </div>

        <ul>
            <% foreach (var visitor in ViewData.Model) { %>
            
                <li><%=Html.ActionLink(visitor.Identifier ?? visitor.Id.ToString(), "VisitorReplies", new { id = visitor.Id }) %></li>

            <% } %>
        </ul>
    
    <% } %>
</asp:Content>
